﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

//	递归实现n的k次方

int popo(int k,int n) 
{
	if (n >= 1)
	{
		return k * popo(k, n-1);
	}
	else
		return 1;
}
int main() 
{
	int n = 0;
	int k = 0;
	scanf("%d %d", &k, &n);

	int count = popo(k, n);

	printf("%d\n",count);
	return 0;
}